#!/bin/bash
set -xe

export CC=$GCC  # clang->gcc
export CXX=$GXX

BAZEL="bazel build $@ --local_ram_resources=${local_ram_resources:-32768}"

${BAZEL} -- //cc/coin2/...
${BAZEL} -- //cc/appcoin2/... -//cc/appcoin2/experimental/...
${BAZEL} -- //cc/testcoin2/...
${BAZEL} -- //cc/coin2/exchange/driver:py_driver.so
